<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<div id="adminTopNavbar">
	<el-row type="flex" class="top-navbar" justify="space-around" align="center">
	   <el-col :span="10">
	      <div class="title">
	      	<i class="fa fa-cog"></i>
	      	<a  href="#"><c:out value="${initParam.admin_title }"/></a>
	      </div>
	   </el-col>
	   <el-col :span="10">
	     <el-row type="flex" justify="end" class="user-box" align="center">
	         <el-col :span="8">
	             <div class="user-msg"><i class="fa fa-user"></i><span><c:out value="${userName }"/>，欢迎您</span></div>
	         </el-col>
	         <el-col :span="4">
	            <a href="${ctx }">
	         	   <el-button type="text"><i class="fa fa-edit"></i>返回主页</el-button>
	         	</a>
	         </el-col>
	         <el-col :span="4">
	         	<el-button type="text" @click="dialogUpdatePwdVisible = true"><i class="fa fa-edit"></i>修改密码</el-button>
	         </el-col>
	         <el-col :span="4">
	           <a href="${ctx }/login/out">
		           <el-button type="text"><i class="fa fa-power-off"></i>安全退出</el-button>
	           </a>
	         </el-col>
	     <el-row>
	   </el-col>
	</el-row>
	
	<!-- 修改密码弹出框 -->
	<el-dialog title="修改密码" :visible.sync="dialogUpdatePwdVisible"  size="tiny" @close="closePwdDialog">
	  <el-form :model="form" :rules="pwdRules" ref="updatePwdForm" label-width="80px">
	    <el-form-item label="登录密码"  prop="oldPwd" >
	      <el-input v-model="form.oldPwd" type="password" placeholder="请输入登录密码"></el-input>
	    </el-form-item>
	    <el-form-item label="新密码" prop="newPwd" >
	      <el-input v-model="form.newPwd" type="password"  placeholder="请输入新密码"></el-input>
	    </el-form-item>
	    <el-form-item label="确认密码" prop="confirmNewPwd">
	      <el-input v-model="form.confirmNewPwd" type="password"   placeholder="请输入确认新密码"></el-input>
	    </el-form-item>
	  </el-form>
	  <div slot="footer" class="dialog-footer">
	    <el-button type="warning" @click="dialogUpdatePwdVisible = false">取 消</el-button>
	    <el-button type="primary" @click="updatePwd">确 定</el-button>
	  </div>
	</el-dialog>
	
	
</div>
<script type="text/javascript" src="${ctx }/static/sys/admin/common/js/adminTop.js"></script>